export default {
  methods: {
    checkPermission(name) {
      const points = this.$store.state.user.userInfo.roles.points
      return points.indexOf(name) !== -1
    }
  }
}
